<template>
	<view>
		<view
			style="background:linear-gradient( 180deg, #E8FFE9 0%, #FFFFFF 65%);height: 450rpx;border-bottom: 10rpx solid #ededed;">
			<view class="cu-custom" :style="{height: $wanlshop.wanlsys().height + 'px' }">
				<view class="cu-bar fixed" :style="{
					height: $wanlshop.wanlsys().height + 'px', 
					paddingTop: $wanlshop.wanlsys().top + 'px',
					color: '#333333'
				}">
					<view class="action">
						<text class="wlIcon-fanhui1" @tap="$wanlshop.back(1)"></text>
						<view class="actionName">个人中心</view>
					</view>
				</view>
			</view>
			<view class="info" @tap="$wanlshop.to('/pages/nursing/info')">
				<view class="avatar margin-right-bj">
					<image :src="$wanlshop.oss(user.avatar, 62, 62, 2, 'avatar')" mode="aspectFill">
					</image>
				</view>
				<view class="content">
					<view class="nickname" @tap="$wanlshop.auth('/pages/user/setting/user')">{{ user.nickname }}</view>
					<view class="username">
						<text>账号:{{user.username}}</text>
					</view>
				</view>
				<text class="wlIcon-fanhui2"></text>
			</view>
			<view class="menu">
				<view class="item">
					<image :src="$wanlshop.oss('/uploads/20240704/724487137efef411b32cc9fc3f10596a.png')" mode="widthFix"></image>
					<text>服务次数</text>
				</view>
				<view class="item">
					<image :src="$wanlshop.oss('/uploads/20240704/ff463043e109e9ad90ec3c6830a26c9d.png')" mode="widthFix"></image>
					<text>服务人员</text>
				</view>
				<view class="item" @tap="$wanlshop.to('/pages/nursing/history')">
					<image :src="$wanlshop.oss('/uploads/20240704/ca2157f5fb3cf7d62910950266fdf157.png')" mode="widthFix"></image>
					<text>历史记录</text>
				</view>
			</view>
		</view>

		<view class="list">
			<view class="item" @tap="$wanlshop.to('/pages/nursing/info')">
				<image :src="$wanlshop.oss('/uploads/20240704/5874b66848448a7f5cb316aae17050e3.png')" mode="widthFix"></image>
				<view class="left">
					<text>个人信息</text>
					<text class="wlIcon-fanhui2"></text>
				</view>
			</view>
			<view class="item" @tap="$wanlshop.to('/pages/nursing/order')">
				<image :src="$wanlshop.oss('/uploads/20240704/328defc44df422b4ca7ada0252875a86.png')" mode="widthFix"></image>
				<view class="left">
					<text>我的派单</text>
					<text class="wlIcon-fanhui2"></text>
				</view>
			</view>
			<view class="item" @tap="$wanlshop.to('/pages/nursing/nullify')">
				<image :src="$wanlshop.oss('/uploads/20240704/4103f9a04ff55cd8e22e5d3c250d2058.png')" mode="widthFix"></image>
				<view class="left">
					<text>作废订单</text>
					<text class="wlIcon-fanhui2"></text>
				</view>
			</view>
			<view class="item" @tap="$wanlshop.to('/pages/nursing/workorder')">
				<image :src="$wanlshop.oss('/uploads/20240704/8ae80e8de2bd0b3cb8c1c9b876f4d68e.png')" mode="widthFix"></image>
				<view class="left">
					<text>我的工单</text>
					<text class="wlIcon-fanhui2"></text>
				</view>
			</view>
		</view>
		
		
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex';
	export default {
		data() {
			return {

			}
		},
		computed: {
			...mapState(['user'])
		},
		onLoad(e) {


		},
		onReady() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	page {
		background: #fff;
	}

	.action {
		display: flex;
		justify-content: flex-start;
		width: 100%;

		>* {
			width: calc(100% / 3);
		}

		view {
			text-align: center;
			font-weight: 500;
			font-size: 34rpx;
		}
	}

	.info {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		padding: 0 30rpx;
		width: 100%;
		padding-top: 56rpx;

		>text {
			color: rgba(0, 0, 0, 0.9);
		}

		.avatar {
			image {
				width: 110rpx;
				height: 110rpx;
				border-radius: 50rpx;
			}
		}

		.content {
			flex: 1;
			display: flex;
			flex-direction: column;
			font-family: PingFang SC, PingFang SC;

			.nickname {
				color: #333333;
				font-size: 34rpx;
				font-weight: 500;
			}

			.username {
				color: #444444;
				font-size: 30rpx;
				margin-top: 4rpx;
			}
		}
	}

	.menu {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		padding: 30rpx;

		.item {
			width: calc(100% / 3);
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				width: 76rpx;
				height: 76rpx;
			}

			text {
				font-family: PingFang SC, PingFang SC;
				color: #000000;
				font-size: 28rpx;
				margin-top: 10rpx;
				display: inline-block;
			}
		}
	}

	.list {
		padding-top: 20rpx;

		.item {
			display: flex;
			justify-content: flex-start;
			align-items: center;
			width: 100%;
			height: 100rpx;
			padding: 0 30rpx;

			image {
				width: 56rpx;
				height: 56rpx;
			}

			.left {
				flex: 1;
				border-bottom: 1px solid rgba(200, 200, 200, 0.3);
				display: flex;
				justify-content: space-between;
				align-items: center;

				text {
					font-weight: 500;
					color: #333333;
					font-size: 30rpx;
					text-indent: 10rpx;
					display: inline-block;
					height: 100rpx;
					line-height: 100rpx;
				}
			}
		}
	}
</style>